/**
 * 
 */
package com.munoor.dalai.server.model.wrappers;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.munoor.dalai.server.model.ListingMetadata;

/**
 * @author Osho Ilamah
 * @since  version 1.0 (27 March 2011)
 */
@XmlRootElement(name = "listing")
public class WrappedListingMetadata extends WrappedEntity {
   private ListingMetadata entity = null;
    
   public WrappedListingMetadata() {
	   entity = new ListingMetadata();
   }

   public WrappedListingMetadata(ListingMetadata entity) {
	   this.entity = entity;
   }
   
	@XmlElement
	public String getTitle() {
		return entity.getTitle();
	}
   
	public void setTitle(String title) {
		entity.setTitle(title);
	}
   
	@XmlElement
	public long getListingId() {
		return entity.getListingId();
	}
   
	public void setListingId(long listingId) {
		entity.setListingId(listingId);
	}
	
	
	@XmlElement
	public String getCompany() {
		return entity.getCompany();
	}
   
	public void setgetCompany(String company) {
		entity.setCompany(company);
	}
 	
/*	@XmlElement
	public long getCompanyId() {
		return entity.getCompanyId();
	}
   
	public void setCompanyId(long companyId) {
		entity.setCompanyId(companyId);
	}*/
		
	public ListingMetadata unmarshall() {
		return entity;
	}
}
